package com.telecom.restaurant.dao;

import com.telecom.restaurant.model.AdminPO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminDao {
    int deleteByPrimaryKey(Long id);

    int insert(AdminPO record);

    int insertSelective(AdminPO record);

    AdminPO selectByPrimaryKey(Long id);

    AdminPO selectByUsername( @Param("username")String username);

    int updateByPrimaryKeySelective(AdminPO record);

    int updateByPrimaryKey(AdminPO record);
}